package com.chushouya.order.dto.api.partnernotify;

import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("订单创建")
public class CreateNotifyDTO extends PartnerBaseNotify{
    public CreateNotifyDTO(){

        super.setNotifyType(PartnerNotifyTypeEnum.CREATE.value());
        super.setNotifyName(PartnerNotifyTypeEnum.CREATE.named());
    }

    /**
     * 订单数据
     */
    private CreateNotifyData data;

    @Data
    @ApiModel("订单创建")
    public static class CreateNotifyData{
        /**
         * 订单状态
         */
        @ApiModelProperty("订单号")
        private String orderNo;

        /**
         * platform
         */
        @ApiModelProperty("平台")
        private String platform;

        /**
         * 用户标记
         */
        @ApiModelProperty("用户标记")
        private String openId;

        /**
         * 手机号
         */
        @ApiModelProperty("手机号")
        private String phone;
    }
}
